package com.hengtongxing.hejiayun_employee.bean;

/**
 */

public interface IResponse {

    public String getCode();

    public void setCode(String code);

    public String getMsg();

    public void setMsg(String msg);

    /**
     * 请求数据的回调
     */
    interface CallBack<T extends IResponse> {

        void onSuccessful(T bean);

        void onFailed(String msg);

        void onFinished();//结束的回调，成功失败必走的
    }

    /**
     * 请求数据的回调
     */
    interface CallBackReLogin<T extends IResponse> {

        void onSuccessful(T bean);

        void onFailed(String msg);

        void onReLogin(String msg);

        void onFinished();//结束的回调，成功失败必走的
    }
}
